import request from '@/utils/request'

// 列表
export function queryList(data) {
  return request({
    url: `/base/profit-setting/index`,
    method: 'post',
    data
  })
}

// 日志
export function oplog(params) {
  return request({
    url: `/oplog/base.profit-setting`,
    method: 'get',
    params
  })
}

// 利润检测设置-启用禁用
export function setStatus(data) {
  return request({
    url: `/base/profit-setting/status`,
    method: 'POST',
    data
  })
}

// 利润检测设置-删除
export function profitSettingDelete(data) {
  return request({
    url: `/base/profit-setting/delete`,
    method: 'POST',
    data
  })
}

// 利润检测设置-获取详情数据
export function profitSettingDetail(params) {
  return request({
    url: `/base/profit-setting/detail`,
    method: 'get',
    params
  })
}

// 利润检测设置-编辑数据
export function profitSettingUpdate(data) {
  return request({
    url: `/base/profit-setting/update`,
    method: 'post',
    data
  })
}

// 利润检测设置-创建
export function profitSettingCreate(data) {
  return request({
    url: `/base/profit-setting/create`,
    method: 'post',
    data
  })
}